package main

import (
	"LoveU/models"
	_ "LoveU/routers"

	"github.com/astaxie/beego"
	"github.com/astaxie/beego/orm"
)

// var globalSessions *session.Manager

func init() {
	models.RegisterDB()
	// globalSessions, _ = session.NewManager("memory", `{"cookieName":"sessionid","gclifetime":3600}`)
	// go globalSessions.GC()
}

func main() {

	orm.RunSyncdb("default", false, true)

	beego.Run()
}
